package com.zhang;

/**
 * @author 张吉鑫
 * @Description 学生类 用于测试排序算法是否为稳定算法
 * @date 2021/4/12 19:58
 */
public class Student implements Comparable<Student> {
	public int score;
	public int age;
	
	public Student(int score, int age) {
		this.score = score;
		this.age = age;
	}
	
	@Override
	public int compareTo(Student o) {
		return age - o.age;
	}
}
